package com.thortec.farmsys.controller;

import com.thortec.farmsys.po.TUser;
import com.thortec.farmsys.service.BaseService;
import com.thortec.farmsys.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/user")
@RestController
public class UserController extends BaseController<TUser> {

    @Autowired
    UserService userService;

    @Override
    public BaseService<TUser> getBaseService() {
        return userService;
    }

    @RequestMapping("/test")
    public Object queryPage(){
        return success(userService.queryListByPageAadFiled(1,2,null,null,null),"");
    }
}
